package com.zmzncs.shop.module.shop.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zmzncs.shop.module.shop.pojo.managershop.ManagerShop;
import com.zmzncs.shop.module.shop.pojo.managershop.ManagerShopDTO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 商户-管理员-商户 Mapper 接口
 * </p>
 *
 * @author 高博文
 * @since 2021-05-25
 */
@Repository
@Mapper
public interface ManagerShopMapper extends BaseMapper<ManagerShop> {

      /** 分页 */
      IPage<ManagerShopDTO> list(Page page);

      /** 详情 */
      ManagerShopDTO getById(Long id);

      List<ManagerShopDTO> getShopByManageId(Long managerId);

}
